package com.xuecheng.api.content;

import com.xuecheng.api.content.model.dto.CourseTeacherDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

import java.util.List;

@Api(value = "课程教师基本信息Api接口", tags = "内容-课程教师基本信息Api接口", description = "课程教师基本信息Api接口")
public interface CourseTeacherApi {


    @ApiOperation(value = "根据课程Id获取教师信息集合")
    @ApiImplicitParam(name = "courseBaseId", value = "课程基本信息ID", required = true, dataType = "Long", paramType = "path", example = "1")
    List<CourseTeacherDTO> queryTeacherList(Long courseBaseId);

    @ApiOperation(value = "创建或修改教师信息")
    @ApiImplicitParam(name = "dto", value = "教师信息", required = true, dataType = "CourseTeacherDTO", paramType = "body")
    CourseTeacherDTO createOrModifyTeacher(CourseTeacherDTO dto);

    @ApiOperation(value = "根据课程Id获取教师信息集合")
    @ApiImplicitParams({
      @ApiImplicitParam(name = "courseBaseId", value = "课程基本信息ID", required = true, dataType = "Long", paramType = "path", example = "1"),
      @ApiImplicitParam(name = "courseTeacherId", value = "课程教师信息ID", required = true, dataType = "Long", paramType = "path", example = "1")
    })
    void deleteTeacher(Long courseBaseId, Long courseTeacherId);
}
